package system;

import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.util.Properties;

/**
 * @author Sean Freitag
 * 
 * Abstract class intended to provide communication attributes for common ground between client and server
 */
public abstract class CommunicationProtocol {
	
	/**
	 * Name of server
	 * Use localhost for having client and server on same machine
	 * Use an IP address or common name for use else wise
	 */
	public static final String host = "localhost";
	
	/**
	 * Port used to connect client to server
	 * Anything above 1024 should be accessible without elevation
	 */
	public static final int port = 5556;
	
//	static
//	{
//		try
//		{
//    		Properties props = new Properties();
//    		props.load(new FileInputStream("resources/config.cfg"));
//    		
//    		host = props.getProperty("host");
//    		port = Integer.parseInt(props.getProperty("port"));
//		}
//		catch (IOException e)
//		{
//			
//		}
//	}
	
}
